package com.hua.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

/**
 * @author ONE-X
 * @date 2020/11/09
 */
@Controller
@RequestMapping("/user")
public class UserController {
	// 跳转到上传图片界面
	@GetMapping("/updateAvatar")
	public String toupdateAvatar(){
		return "user/update-avatar";
	}
	// 跳转到User/index
	@GetMapping("/index")
	public String toIndex(){
		return "user/index";
	}

	// 跳转到用户设置页面
	@GetMapping("/settings")
	public String toSettings(){
		return "user/settings";
	}

}
